package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.result.Result;

/**
* @author MrWang
* @description 针对表【orders(订单表)】的数据库操作Service
* @createDate 2023-10-26 13:35:04
*/
public interface OrdersService extends IService<Orders> {

    Result saveOrders(OrdersSubmitDTO ordersSubmitDTO);

    Result ordersList(String page,String pageSize, String status);

    Result  payment(OrdersPaymentDTO ordersPaymentDTO);

    Result getOrdersDetailById(String id);

    Result cancel(String id);

    Result repetition(String id);

    Result conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    Result getOrdersDetails(String id);

    Result statistics();

    Result confirm(OrdersConfirmDTO ordersConfirmDTO);

    Result rejection(OrdersRejectionDTO ordersRejectionDTO);

    Result cancelByAdmin(OrdersCancelDTO ordersCancelDTO);

    Result deliveryOrders(String id);

    Result completeOrders(String id);
}
